/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ditt.outils;

/**
 *
 * @author attobra
 */
public class Boisson implements Payant{
    protected String nom;
    protected float prix;
    
    public String toString(){
        return  this.getNom().concat(" coûte ") + Float.valueOf(prix).toString() + " FCFA";
    }
    

    public Boisson(String nom, float prix) {
        this.nom = nom;
        this.prix = prix;
    }   

    public String getNom() {
        return nom;
    }

    public float getPrix() {
        return prix;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public void setPrix(float prix) {
        this.prix = prix;
    }
    
    
    
}
